package com.zmn.oms.model.entity.work;

import com.zmn.oms.model.es.ZmnEsFieldType;
import com.zmn.oms.model.es.ZmnToEs;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.List;

/**
 * 类描述：同步es 查询工单
 *
 * @author lujia
 * @date 2018/11/23 20:01
 */
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class OrderWorkOperateQuery {

    /**
     * 操作员id
     */
    @ZmnToEs(map = "operateList.operatorId", type = ZmnEsFieldType.Integer)
    private Integer operatorId;

    /**
     * 操作员id集合
     */
    @ZmnToEs(map = "operateList.operatorId", type = ZmnEsFieldType.Arr)
    private List<Integer> operatorIdList;

    /**
     * 操作类型
     *
     * @see com.zmn.oms.common.constant.OrderConsts#ORDER_OP_TYPE_INPUT
     */
    @ZmnToEs(map = "operateList.operateType", type = ZmnEsFieldType.Integer)
    private Integer operateType;
}
